window.onload = function(){
    $('#searchText').click(function () {
        $("#searchBar").addClass("weui-search-bar_focusing");
        $('#searchInput').focus()
    })
    $('#searchCancel').click(function () {
        $("#searchBar").removeClass("weui-search-bar_focusing");
    })
    $('#searchInput').blur(function () {
        $("#searchBar").removeClass("weui-search-bar_focusing");
    })
    // 部门
    $("#department").picker({
        title: "-- 请选择 --",
        cols: [
            {
                textAlign: 'center',
                values:  ["全部", "销售部", "品牌部", "技术部", "前台"]
            }
        ],
        onChange: function () {
            var value = $('#department').val()
            console.log(value)
        }
    });
    // 类型
    $("#type").picker({
        title: "-- 请选择 --",
        cols: [
            {
                textAlign: 'center',
                values:  ["全部", "技术类", "销售类", "客服类"]
            }
        ],
        onChange: function () {
            var value = $('#type').val()
            console.log(value)
        }
    });
    // 地点
    $("#native").picker({
        title: "-- 请选择 --",
        cols: [
            {
                textAlign: 'center',
                values:  ["全部", "深圳市"]
            }
        ],
        onChange: function () {
            var value = $('#native').val()
            console.log(value)
        }
    });
    // 获取当前点击的id
    $(".weuiLi").on("click",function(){
        let name = 'wpf';
        let age = 'nan';
        let url = "details.html?name="+name +"&age="+age;//此处拼接内容
        window.location.href = url;
    });
}
